Skip to content

test(sharding): G3 foundation 3 partial 마감 (ShardingMode/ShardsSpec/plugin) - #62

Merged
eightynine01 merged 1 commit into
stablefrom
feat/postgres-sharding-foundation-finalize
May 17, 2026
Merged

test(sharding): G3 foundation 3 partial 마감 (ShardingMode/ShardsSpec/plugin)#62
eightynine01 merged 1 commit into
stablefrom
feat/postgres-sharding-foundation-finalize

Conversation

@eightynine01

Copy link
Copy Markdown
Contributor

Summary

G3 sharding foundation 3 partial sub-task finalize — ShardingMode field + ShardsSpec topology + sharding plugin interface 모두 unit test 보강 + ROADMAP marker [~][x].

변경 내용

  • api/v1alpha1/postgrescluster_types_test.go (신규): TestShardingMode (constants/round-trip/string cmp) + TestShardsSpec (field preservation + DeepCopy + Replicas=0 dev mode)
  • internal/plugin/sharding/api_test.go (확장): TestRegistry_Register_Get / NotFound / Names
  • ROADMAP.md G3 3 sub-task marker 갱신

v1.0 로드맵 매핑

~/.claude/plans/1-swift-anchor.md Rev 4 §Phase A #2
Gate G3 D.8.x 3 sub-task [~][x] (control plane finalize)

검증 명령

go test ./api/v1alpha1/... -run TestShardingMode -v
go test ./api/v1alpha1/... -run TestShardsSpec -v
go test ./internal/plugin/sharding/... -v

정책 정합

  • Rebased onto origin/main 53dbdf0, WIP commit 72271d8 drop
  • fallback: gh CLI graphql 0/0 → gh api POST REST direct

…lugin)

- ShardingMode field round-trip + 값 검증 unit test
- ShardsSpec deepcopy + field round-trip unit test
- Sharding plugin interface registry contract test (umbrella 신규 — 기존 개별 테스트 보존)
- 외부 docs cross-ref: docs/rfcs/0002-shardrange-crd.md (mode 분기), 0004-pg-router-architecture.md (plugin)

Refs: plans/2026-05-14-4-operators-100pct/P-D §D.7
@eightynine01
eightynine01 changed the base branch from main to stable May 17, 2026 11:07
@eightynine01
eightynine01 merged commit deeb79a into stable May 17, 2026
@eightynine01
eightynine01 deleted the feat/postgres-sharding-foundation-finalize branch May 17, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants